﻿QASPRibbon = function (pageManager) {
    this.Tabs = new Array();
    this.Tabs.push();
    this.QATButtons = new Array(2);
    this.AllControls = new Array(0);

    this.Ribbon = pageManager.get_ribbon();
    this.PageManager = pageManager;


};

QASPRibboonTab = function (qaribbon, id, clientId, title, description) {
    this.QARibbon = qaribbon;
    this.Id = id;
    this.Title = title;
    this.ClientId = clientId;
    this.Description = description;

    this.Select = function () {
        qaribbon.Ribbon.selectTabById(clientId);
    };
};

var QASPRibbonAPI = null;

SP.SOD.executeOrDelayUntilScriptLoaded(function () {
    var pm = SP.Ribbon.PageManager.get_instance();

    pm.add_ribbonInited(function () {
        
    });

    if (!ribbon) {
        if (typeof (_ribbonStartInit) == "function")
            _ribbonStartInit(_ribbon.initialTabId, false, null);
    }
    else {
        QASPRibbonAPI = new QASPRibbon(pm);
    }
}, "sp.ribbon.js");


